<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{width: 200px;height: 200px;background-color: red;}
    </style>
</head>
<body>
    <div id="div"></div>
    <span id="span"></span>
    <script>
        document.onmousemove = function(e){
            // span.innerHTML = 
            console.log('div',e)
            console.log('window',event)
        }
        
        var div = document.querySelector('#div')
        div.addEventListener('click',function a(){})
        div.attachEvent('onclick',function a(){})
        div.removeEventListener('click',a)
        div.detachEvent('onclick',a)
        function jr(e,fn,fx){
            if(e){}
        }
    </script>
</body>
</html>